package com.wiwl.web.controller;

import java.util.List;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wiwl.domain.Filtro;
import com.wiwl.service.ServiceLocator;

@Controller
public class JSONController {

	@Secured("ROLE_ADMIN")
	@RequestMapping(value = "/getFiltros")
	public @ResponseBody List<Filtro> getFiltros(@RequestParam String usuarioId) {
		return ServiceLocator.getFiltroService().getAll();
	}

}